import Article from "../pages/Article/Article";
import Detail from "../pages/Detail/Detail";
import Home from "../pages/Home/Home";
import My from "../pages/My/My";
import { createBrowserRouter } from "react-router-dom";

export const routerlist=[
    {
        path:'/article',
        element:<Article />,
        meta:{title:'待接单'}
    },
    {
        path:'/detail',
        element:<Detail />,
        meta:{title:'待发出'}
    },
    {
        path:'/my',
        element:<My />,
        meta:{title:'已完成'}
    },
    
]

const router=createBrowserRouter([
    {
        path:'/',
        element:<Home />,
        children:routerlist
    }
])

export default router